package com.shanshan.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * -*- coding:utf-8 -*-
 *
 * @author 太阳偷渡青山
 * @software IntelliJ IDEA
 * @date 2023/01/19 10:57
 * @Description
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_code")
public class Code {
    private int id;
    private String uuid;
    private String code;
    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Code(String uuid, String code,Date createTime) {
        this.uuid = uuid;
        this.code = code;
        this.createTime = createTime;
    }
}